package com.oig.sys.base.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 币种汇率历史Vo
 * @author qiuzebin
 */
@Schema
@Data
public class CurrRateHisVo {

    @Schema(description = "ID")
    private Integer id;

    @Schema(description = "币种")
    private String currency;

    @Schema(description = "对人民币汇率")
    private BigDecimal rmbRate;

    @Schema(description = "对美元汇率")
    private BigDecimal usdRate;

    @Schema(description = "银行买入对人民币")
    private BigDecimal bankRmbBrate;

    @Schema(description = "银行买入对美元")
    private BigDecimal bankUsdBrate;

    @Schema(description = "银行卖出对人民币")
    private BigDecimal bankRmbSrate;

    @Schema(description = "银行卖出对美元")
    private BigDecimal bankUsdSrate;

    @Schema(description = "特殊价格")
    private BigDecimal bankRmbGiven;

    @Schema(description = "汇率类型 0-银行挂牌价 1-海关汇率")
    private String customsFlag;

    @Schema(description = "汇率源")
    private String rateSource;

    @Schema(description = "海关汇率月份")
    private String useMonth;

    @Schema(description = "汇率发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rateTime;

    @Schema(description = "最后更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Schema(description = "导入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date hisTime;
}
